package com.abel.demo.common;

/**
 * @description:
 * @author: Abel.lin
 * @date: Created in 2020/6/29 14:51
 * @version:
 * @modified By:
 */
public class BusinessException extends RuntimeException {

    private RespCode code;

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(RespCode code, String message) {
        super(message);
        this.code = code;
    }

    public RespCode getCode() {
        return code;
    }
}
